﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class DeliveryNoteItemExtraBLL
    {
        private static readonly DeliveryNoteItemExtraDAL dal = DataAccess.CreateDeliveryNoteItemExtra();

        public IList<DeliveryNoteItemExtraInfo> GetDeliveryNoteItemExtraWithParent(int dn_seq)
        {
            return dal.GetDeliveryNoteItemExtraWithParent(dn_seq);
        }

        public void Insert(IList<DeliveryNoteItemExtraInfo> infoList, Nullable<int> dn_seq, DeliveryNoteInfo info, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, dn_seq, info, dbManagerTrans);
        }

        public void Insert(IList<DeliveryNoteItemExtraInfo> infoList)
        { 
            dal.Insert(infoList);
        }

        public void DeleteFromDB(IList<DeliveryNoteItemExtraInfo> infoList)
        {
            dal.DeleteFromDB(infoList);
        }
    }
}
